// SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
// SPDX-License-Identifier: Mulan PSL v2
package com.geniusai.aip.auth.constants;

/**
 * @author longping58607
 * @date 2020/12/15
 */
public class LoadConstants {

    public static final String NAME_FORMAT = "^[a-z0-9]([-a-z0-9]*[a-z0-9]){2,}$";

    public static final Integer BCRYPT_CONFIG_LONG_ROUND = 12;

    public static final String PASSWORD_FORMAT = "^(?!.*(?i)admin|ngsoc|sangfor|aip)(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W_!@#$%^&*`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\\W_!@#$%^&*`~()-+=]+$)(?![0-9\\W_!@#$%^&*`~()-+=]+$)[a-zA-Z0-9\\W_!@#$%^&*`~()-+=]{8,32}$";

    public static final Integer ADMIN = 1;

    public static final Integer NORMAL = 0;

    public static final String USERINFO = "{userId}";

    public static final String RESOURCEINFO = "{resourceId}";

    public static final String SECRET_NAME = "my-s3";

    public static final String SA_NAME = "my-s3";

}
